package com.ijunfu.study.jdk.jdk8.annotation;

/**
 * @Title : @Repeatable 注解 使用示例
 * @Remarks:
 * @Author : Weizhiguo
 * @Version: 1.0.0
 * @Date : 2022-05-01
 */
@MyAnnotation("author: Weizhiguo")
@MyAnnotation("version: 1.0.0")
public class RepeatableDemo {

    public static void main(String[] args) {

        MyAnnotation[] annotations = RepeatableDemo.class.getAnnotationsByType(MyAnnotation.class);
        for(MyAnnotation my : annotations) {
            System.out.println(my.value());
        }

    }

}
